package com.loongtech.bi.manager.system;

import com.loongtech.bi.entity.system.EntitySyncInfoLog;
import com.loongtech.core.jpa.manager.ManagerBase;
import com.loongtech.core.util.Time;
import org.springframework.stereotype.Service;

@Service("SyncConfigManager")
public class SyncInfoLogManager extends ManagerBase<EntitySyncInfoLog> {
    private static final long serialVersionUID = 7L;

    public void add(String gameId, String sql) {
        EntitySyncInfoLog entitySyncInfoLog = new EntitySyncInfoLog();
        entitySyncInfoLog.setGameId(gameId);
        entitySyncInfoLog.setExcuteSql(sql);
        entitySyncInfoLog.setCreateTime(Time.currentTime());
        entitySyncInfoLog.setStatus(0);
        persist(entitySyncInfoLog);
    }
}
